﻿
using BCEntity.OA.Notification.NotificationTransferRecord;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace BCData.OA.Notification.NotificationTransferRecord
{
    /// <summary>
    /// OA系统通知记录移交记录
    /// </summary>
	public interface INotificationTransferRecordData
    {
        #region  成员方法
        /// <summary>
        /// 是否存在该记录
        /// </summary>
        /// <param name="notificationTransferRecordId">OA系统通知记录移交记录Id</param>
        Task<bool> Exists(long notificationTransferRecordId);
        /// <summary>
        /// 增加OA系统通知记录移交记录
        /// </summary>
        /// <param name="entity">OA系统通知记录移交记录信息</param>
        Task<NotificationTransferRecordEntity> Add(NotificationTransferRecordEntity entity);
        /// <summary>
        /// 更新OA系统通知记录移交记录
        /// </summary>
        /// <param name="entity">OA系统通知记录移交记录信息</param>
        Task<NotificationTransferRecordEntity> Update(NotificationTransferRecordEntity entity);
        /// <summary>
        /// 删除OA系统通知记录移交记录
        /// </summary>
        /// <param name="notificationTransferRecordId">OA系统通知记录移交记录Id</param>
        Task<bool> Delete(long notificationTransferRecordId);
        /// <summary>
        /// 获取OA系统通知记录移交记录
        /// </summary>
        /// <param name="notificationTransferRecordId">OA系统通知记录移交记录Id</param>
        Task<NotificationTransferRecordEntity> GetEntity(long notificationTransferRecordId);
        /// <summary>
        /// 获取OA系统通知记录移交记录列表
        /// </summary>
        Task<IEnumerable<NotificationTransferRecordEntity>> GetList();
        /// <summary>
        /// 获取OA系统通知记录移交记录分页列表
        /// </summary>
        /// <param name="pageIndex">当前页码</param>
        /// <param name="pageSize">OA系统通知记录移交记录每页数据条数</param>
        Task<(IEnumerable<NotificationTransferRecordEntity>, int)> Query(int pageIndex, int pageSize);
        #endregion  成员方法
    }
}
